package com.huang.untils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReStates {
    private int errorCode;
    private String message="";

    public ReStates isOK(){
        errorCode=0;
        return this;
    }
    public ReStates isFalse(){
        errorCode=1;
        message="删除失败";
        return this;
    }
    public ReStates updateFalse(){
        errorCode=1;
        message="更新失败,接口输入的类型不存在";
        return this;
    }
}
